
// Copyright (C) Recursion Company. All rights reserved.

#ifndef __VOL_MFC_UI_HYPERLINK_H__
#define __VOL_MFC_UI_HYPERLINK_H__

class IHyperLinkEventListener : public IBaseEventListener
{
public:
    virtual BOOL OnGoto (const TCHAR* szURL) = 0;
};

class CVWnd_HyperLink : public CWnd
{
    DECLARE_VOL_NATIVE_WND_CLASS (CVWnd_HyperLink, CWnd, IHyperLinkEventListener, FALSE)

protected:
    //{{AFX_MSG(CVWnd_HyperLink)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnPaint();
    afx_msg void OnSetFont (CFont* pFont, BOOL bRedraw);
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP ()

public:
    BOOL GotoURL ();

public:
	INT m_nType;
	CVolString m_strEmail, m_strURL;
	COLORREF m_clrLink, m_clrVisited, m_clrHover, m_clrBack;

protected:
	BOOL m_blOverControl, m_bVisited;
    CFont m_fntDraw;
};

#endif
